string_right

This function returns a specified number of characters from the right hand side of a string.

string string_right(string the_string, uint count)

Parameters:
the_string
The string that will be extracted from.
count
The number of characters to return.

Return value:
A string containing the rightmost count characters of the string.

Remarks:
If count is less than 1, a blank string will be returned. Likewise, if count is greater than the string's length, then the whole string will be returned.

Example:
void main()
{
alert("string_right test", string_right("Hello, I am a string!", 7)); //output should be string!
}